import request from '/@/utils/request';
// 查询客户信息;列表
export function listCustomerInfo(query) {
  return request({
    url: '/api/v1/equip/customerInfo/list',
    method: 'post',
    params: query
  })
}
// 查询客户信息;详细
export function getCustomerInfo(id) {
  return request({
    url: '/api/v1/equip/customerInfo/get',
    method: 'get',
    params: {
      customer_id: id.toString(),
    }
  })
}
// 新增客户信息;
export function addCustomerInfo(data) {
  return request({
    url: '/api/v1/equip/customerInfo/add',
    method: 'post',
    data: data
  })
}
// 修改客户信息;
export function updateCustomerInfo(data) {
  return request({
    url: '/api/v1/equip/customerInfo/edit',
    method: 'post',
    data: data
  })
}
// 删除客户信息;
export function delCustomerInfo(data) {
  return request({
    url: '/api/v1/equip/customerInfo/delete',
    method: 'post',
    data
  })
}
